package com.cn.common;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class RemotingResponseWrapper2 {

    private static ConcurrentMap<Long, ResponseFuture2> responseFutureTables = new ConcurrentHashMap<>(128);

    public static void add(long opaue, ResponseFuture2 responseFuture2) {
        responseFutureTables.put(opaue, responseFuture2);
    }

    public static void remove(long opaue) {
        responseFutureTables.remove(opaue);
    }

    public static ResponseFuture2 find(long opaue) {
        return responseFutureTables.get(opaue);
    }

}
